package com.zhiyou100.serviceImpl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhiyou100.mapper.ReUserControllerMapper;
import com.zhiyou100.model.User;
import com.zhiyou100.service.ReUserControllerService;
@Service
public class ReUserControllerImpl implements ReUserControllerService{
	@Autowired
	private ReUserControllerMapper mapper;
	
	// 查询
	public List<User> findAll(Map<String, Object> map) {
		List<User> lists = mapper.findAll(map);
		System.out.println("serviceImpl map:"+map);
		return lists;
	}
	// 删除
	@Override
	public void userDelete(String id) {
		mapper.userDelete(id);
		
	}
	// 编辑 查找
	@Override
	public User findUserById(String id) {
		User user = mapper.findUserById(id);
		return user;
	}
	@Override
	public void updateUser(User user) {
		mapper.updateUser(user);
		
	}
	// 用户审核
	@Override
	public void userCheck(int uStatus) {
		mapper.userCheck(uStatus);
		
	}

}
